package com.zhichubao.enterprise.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangzhiwei
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("p2p_account")
@ApiModel(value="Account对象", description="")
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long tenantId;

    @ApiModelProperty(value = "昵称-预留字段")
    private String name;

    @ApiModelProperty(value = "已废弃 -  用户类型，1 p2p用户 2 来竟用户  3 全部都有")
    private Integer type;

    @ApiModelProperty(value = "已废弃-是否是超级管理员（权重降低）")
    private Integer isTenantAdmin;

    @ApiModelProperty(value = "用户名")
    private String accountName;

    private String password;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "预留字段-锁定用户")
    private Integer islocked;

    @ApiModelProperty(value = "预留-锁定时间")
    private LocalDateTime lockedTime;

    @ApiModelProperty(value = "预留-描述")
    private String description;

    @ApiModelProperty(value = "预留-凭证盐值")
    private String credentialsSalt;

    private Integer deleteStatus;

    private String creatorName;

    private LocalDateTime createTime;

    private String updateName;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "员工ID")
    private Long employeeId;

    @ApiModelProperty(value = "语言,默认是汉语")
    private String language;


}
